<?php
    if (chdir("files"))
    {
        $dr = opendir(getcwd());
        while (($file = readdir($dr)) !== false)
        {
            if (strlen($file)>4)
            {
                $files[] = $file;
            }
        }
    }
    foreach ($files as $file)
    {
		if ($file != 'update.exe' && $file != 'index.php')
		{
			$m = stat($file);
			$date = date("d.m.Y H:i:s", $m[9]);
			$output .= $file . "\r\n" . $date . "\r\n";
		}
    }
    echo $output;
?>